<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\LinkPager;
$this->title = '我的评论';
?>
<?php echo $this->render('_centerHeader') ?>
<!--主体开始-->
<div class="main-area" style=" background: #f5f5f5;">
    <div class="container">
        <div class="column-layout">
            <!-- main-area-left start  -->
<div class="column-col column-full main-area-left">
<div class="main-area-leftin tab-box">
<div class="ibox">
    <div class="ibox-in">
        <div class="ibox-head">
            <ul class="tab-list" role="tablist">
                <li role="presentation" class="active">
                    <a href="#BASIC_DOC" aria-controls="BASIC_DOC" role="tab" data-toggle="tab">收藏的文章</a>
                </li>
            </ul>
        </div>
        
<div class="ibox-body tab-pane-list">
<!-- 我的收藏的文章  -->
<div role="tabpanel" class="tab-pane active" id="MY_ARTICLE">
    <div class="my-article-list">
        <!-- item  -->
		<?php if($articles != ''){?>
        <?php foreach($articles as $k=>$v){?>
        <div class="item">
            <div class="column-col-l">
                <a class="col-in" href="<?= Url::to(['operate/detail'])?>?article_id=<?php echo $v['article_id']?>" target="_blank">
                    <img src="http://admin.bwphp.com/<?php echo $v['article_thumb'];?>" alt="">
                </a>
            </div>
            <div class="column-col column-full">
                <div class="col-in">
                    <h3><a href="<?= Url::to(['operate/detail'])?>?article_id=<?php echo $v['article_id']?>" target="_blank"><?php echo $v['article_title'];?></a></h3>
                    <p class="article-abstract"><?php echo $v['article_descripte']?><a href="<?= Url::to(['operate/detail'])?>?article_id=<?php echo $v['article_id']?>" target="_blank">&nbsp;&nbsp;&nbsp;查看全文</a></p>

                    <div class="column-layout item-about">
                        <div class="column-col-l">
                            <span class="u-datetime">作者:<?php echo $v['article_author']?>&nbsp;&nbsp;&nbsp;&nbsp;发布于:<?php echo date('Y-m-d H:i:s',$v['article_addtime']);?></span>
                        </div>
                        
                        <div class="column-col-r d-col-right">
                            
							浏览(<?php echo $v['article_count']?>)
                        </div>
                        
                    </div>

                </div>
            </div>

        </div>
        <?php }?>
		<?php }else{ echo "<h1><center>您当前还没有收藏的文章</center></h1>";}?>

    </div>
	<?php echo LinkPager::widget([
				'pagination' => $pagination,
				'prevPageLabel'=>'上一页',
				'nextPageLabel'=>'下一页',
			]);?>


</div>


</div>
    </div>
</div>
</div>
</div>
            <!-- main-area-left end  -->
            <!-- main-area-right start  -->
            <div dy-v="00-00-11-11" class="column-col main-area-right">
                
                <!-- 课程推荐 -->
                <?php echo $this->render('../common/_courseRecommend') ?>
 
                <!-- 名师推荐 -->
                <?php echo $this->render('../common/_teacherRecommend') ?>

                <!-- 图片广告 -->
                <?php echo  $this->render('../common/_adRecommend') ?>
            </div>
            <!-- main-area-right end  -->
        </div>
    </div>
</div>
